# Python逆向参数收集详解
def dis_str(name, add):
    print("name:", name)
    print("add:", add)
    print()

data = ["Python教程", "http://c.biancheng.net/python/"]
# 使用逆向参数收集方式传值
dis_str(*data)

data = {"name":"Python教程", "add":"http://c.biancheng.net/python/"}
# 使用逆向参数收集方式传值
dis_str(**data)

def dis_str(name, *add):
    print("name:", name)
    print("add:", add)
    print()

data = ["http://c.biancheng.net/python/", "http://c.biancheng.net/shell/", "http://c.biancheng.net/golang/"]
# 使用逆向参数收集方式传值
dis_str("Python教程", *data)
data = ["Python教程", "http://c.biancheng.net/python/", "http://c.biancheng.net/shell/", "http://c.biancheng.net/golang/"]
dis_str(*data)
